<template>
  <div id="app">
    <loading v-if="$store.state.loading"></loading>
    <keep-alive>
      <router-view v-if="$route.meta.keepAlive"></router-view>
    </keep-alive>
    <router-view v-if="!$route.meta.keepAlive"></router-view>
    <lg-preview></lg-preview>
  </div>
</template>

<script>
  export default {
    name: 'app',
    components: {},
    data() {
      return {}
    }
  }
</script>

<style lang="scss" scoped>

</style>
